@import '../../variables.scss';

.icon-text {
  height: 51px;
  background: url('http://localhost:8085/static/images/橙色背景块.png') no-repeat;
  background-size: 100% 100%;
  // 默认水平布局
  display: inline-flex;
  // 图标样式 - 参照 thumbnail_22
  .icon-text-icon {
    width: 24px;
    height: 24px;
    margin: 0px 0 0 14px;
    flex-shrink: 0;
    background: url('./tub.png') no-repeat center;
    background-size: contain;
  }

  // 文字样式 - 参照 text_46
  .icon-text-label {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    width: 77px;
    height: 26px;
    overflow-wrap: break-word;
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    letter-spacing: 1.125px;
    font-family: SourceHanSansSC-Medium;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    line-height: 26px;
    margin: 0px 25px 0 8px;
  }

  // 悬停效果
  &:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.4) 0%, rgba(52, 152, 219, 0.2) 100%);
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);

    .icon-text-label {
      color: #ffffff;
    }
  }

  // 垂直布局
  &.direction-vertical {
    flex-direction: column;
    justify-content: center;
    text-align: center;

    .icon-text-icon {
      margin: 0;
      align-self: center;
    }

    .icon-text-label {
      margin: 0;
      text-align: center;
    }
  }

  // 小尺寸
  &.size-small {
    width: 100px;
    height: 36px;

    .icon-text-icon {
      width: 10px;
      height: 10px;
      margin: 13px 0 0 16px;
    }

    .icon-text-label {
      font-size: 12px;
      height: 20px;
      line-height: 20px;
      margin-left: 6px;
    }
  }

  // 大尺寸
  &.size-large {
    width: 180px;
    height: 60px;

    .icon-text-icon {
      width: 16px;
      height: 16px;
      margin: 22px 0 0 28px;
    }

    .icon-text-label {
      font-size: 16px;
      height: 30px;
      line-height: 30px;
      margin-left: 12px;
    }
  }

  // 浅色主题
  &.theme-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    border-color: rgba(200, 200, 200, 0.6);

    .icon-text-label {
      color: rgba(51, 51, 51, 1);
      text-shadow: 0px 1px 2px rgba(255, 255, 255, 0.5);
    }

    &:hover {
      background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
      border-color: rgba(52, 152, 219, 0.4);

      .icon-text-label {
        color: rgba(52, 152, 219, 1);
      }
    }
  }

  .distance-wrapper {
    display: flex;
    align-items: baseline;
    padding-right: 10px;
    .distance {
      font-weight: bold;
      font-size: 18px;
      color: #FFFFFF;
      line-height: 9px;
      letter-spacing: 0;
      text-shadow: 0 0 2px rgba(32,154,255,0.51);
      margin-right: 4px;
    }

    .distance-unit {
      font-weight: 400;
      font-size: 12px;
      color: #FFFFFF;
      line-height: 8px;
      letter-spacing: 0;
      text-align: left;
    }
  }
}
